package com.fooddiary.util;

/**
 * 
 * @author Created by andrey.kuznetsov <br>
 * @author Last modified by $Author$ <br>
 * @author Last modified on $Date$ at revision $Revision$ <br>
 */
public class SortPaginationBean {

	private String sortColumn;
	private String sortDirection;
	private Integer startIndex;
	private Integer numberOfRecords;
	
	/**
	 * Constructor for sorting info <br>
	 * @param p_sortColumn - sorting column; {@link String} <br>
	 * @param p_sortDirection - sorting direction; {@link String} <br>
	 * @param p_startIndex - start index for pagination; {@link Integer} <br>
	 * @param p_numberOfRecords - number of records on one page; {@link Integer} <br>
	 */
	public SortPaginationBean(String p_sortColumn, String p_sortDirection, Integer p_startIndex, Integer p_numberOfRecords) {
		sortColumn = p_sortColumn;
		sortDirection = p_sortDirection;
		startIndex = p_startIndex;
		numberOfRecords = p_numberOfRecords;
	}

	/**
	 * Returns sorting column <br>
	 * @return {@link String};
	 */
	public String getSortColumn() {
		return sortColumn;
	}

	/**
	 * Returns direction of sorting <br>
	 * @return {@link String};
	 */
	public String getSortDirection() {
		return sortDirection;
	}

	/**
	 * Returns start index for pagination <br>
	 * @return {@link Integer};
	 */
	public Integer getStartIndex() {
		return startIndex;
	}

	/**
	 * Returns number of record on page <br>
	 * @return {@link Integer};
	 */
	public Integer getNumberOfRecords() {
		return numberOfRecords;
	}
	
	
}
